package org.ala.tiktools.rpc.client_server.service;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;


/**
 * @author ala
 * @date 2025-04-05 23:31
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface AlaRpcService {
    /**
     *  根url
     *  <p> 请求路径会追加进每个method的url前缀
     */
    String path() default "";


    /**
     *  线程池配置
     *  <p> 若 <= 0，使用公共线程池
     */
    int threadPoolCoreSize() default -1;
    int threadPoolMaxSize() default -1;
    int threadPoolQueueSize() default -1;
}
